#!/usr/bin/python
print 'IF'
if 0 == 0 :
    print '0 == 0'
else :
    print '0 != 0'
print 'While'
nums = [1,2,3,4,5,6]
even = []
odd = []
while len(nums) > 0 :
    num = nums.pop()
    if num % 2 == 0 :
        even.append(num)
    else :
        odd.append(num)
print 'While done'
print even
print odd

print 'oct to bin'
a = 128
mask = 0x1
res = []
while a > 0 :
    bit = a & mask
    a >>= 1
    res.append(bit)
print res
